<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Role;

/**
 * 管理员角色
 */
class RoleController extends Controller
{
    // 列表
    public function index(Request $request)
    {
        $list = Role::select('id', 'role_name')->get();
        return resJson(self::HTTP_0_SUCCESS, $list);
    }
}
